const request = require('./request')

const BASE_URL = '/finance/record/export'

/**
 * 导出记录
 * @param {*} param 搜索参数
 * @returns 
 */
function exportRecords(param) {
  return request.get(BASE_URL + '/', param)
}

/**
 * 分页查询导出记录
 * @param {*} param 搜索参数
 * @returns 
 */
function exportPageList(param) {
  return request.get(BASE_URL + '/page/list', param)
}

/**
 * 删除导出记录
 * @param {*} exportId 
 * @returns 
 */
function exportDelete(exportId) {
  return request.post(BASE_URL + '/delete/'+ exportId)
}

module.exports = {
  exportRecords,
  exportPageList,
  exportDelete
} 